const express = require("express")
const test = require("./test")
const article = require("./article")
const ZF = require("./zf")
const user = require("./user")
const connect = require("../mongodb/db")


connect()

module.exports = module.exports=function(app){
  app.get('/', (req, res) => {
      res.send('Hello World!')
    })
  // 加载路由
  app.use("/",test)
  app.use("/",article)
  app.use("/",user)
  app.use("/",ZF)
}